ENUM_FILES = Fruit
BIN = fruit_demo


SRC=$(addsuffix .cpp, $(BIN))
OBJ=$(addsuffix .o, $(BIN))
ENUM_OBJ = $(addsuffix .o, $(ENUM_FILES))
CC=g++


all: $(BIN)

$(BIN): $(OBJ) $(ENUM_OBJ)
	$(CC)  $(CPPFLAGS) $(OBJ) $(ENUM_OBJ) -I. -o $@

%.o%.cpp:
	$(CC) $(CPPFLAGS) -c $< -o %@


.PHONY: clean realclean
clean:
	rm -f $(BIN) $(OBJ) $(ENUM_OBJ)

realclean:
	make clean
	rm -f $(REALCLEAN_FILES) *~

include ../makeinclude.macros
